<script src="js/generate/generate.js"></script>
<div class="layui-row layui-col-space10" style="width: 100%;height: 80%;">
    <div class="layui-col-md4">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
            <legend><i class="layui-icon layui-icon-water" style="font-size: 20px; color: #0000FF"></i>&nbsp;选择数据源
            </legend>
        </fieldset>
        <form id="dataSourceForm" class="layui-form" lay-filter="dataSourceForm">
            <div class="layui-form-item">
                <label class="layui-form-label">数据源</label>
                <div class="layui-input-block">
                    <select id="hbgdsId" name="hbgdsId" lay-filter="hbgdsId" lay-verify="required" lay-search>
                    </select>
                </div>
            </div>
        </form>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
            <legend><i class="layui-icon layui-icon-template-1" style="font-size: 20px; color: #f17323"></i>&nbsp;选择模板</legend>
        </fieldset>
        <form id="templateForm" class="layui-form" lay-filter="templateForm">
            <!-- 模板和目录结构 -->
            <div class="layui-form-item">
                <label class="layui-form-label">模板</label>
                <div class="layui-input-block">
                    <select id="hbgtId" name="hbgtId" lay-filter="hbgtId" lay-verify="required" lay-search>
                    </select>
                </div>
            </div>
        </form>
        <div id="templateStructureTree" style=" margin-top: 15px;"></div>
    </div>
    <div class="layui-col-md8">
        <!-- 填写参数 -->
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
            <legend><i class="layui-icon layui-icon-edit" style="font-size: 20px; color: #4E5465"></i>&nbsp;填写参数</legend>
        </fieldset>
        <form id="paramForm" class="layui-form" lay-filter="paramForm">
            <div class="layui-form-item">
                <label class="layui-form-label">表名</label>
                <div class="layui-input-block">
                    <input type="text" name="generateTables" required lay-verify="required"
                           placeholder="请输入表名,多个以英文逗号隔开"
                           autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div id="paramsDiv" class="layui-row">

            </div>
            <div class="layui-row" style="width: 100%;height: 87px;position: fixed;bottom: 0px;left: 52px;">
                <div class="layui-form-item">
                    <div class="layui-input-block" style="text-align: center">
                        <button class="layui-btn layui-btn-normal" lay-submit lay-filter="generateStart">生成
                        </button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

